package com.cqjtu.tto.dao.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 员工绩效
 * </p>
 *
 * @author MrLuo
 * @since 2021-12-14
 */
@Data
@ApiModel(value = "员工绩效模型")
@EqualsAndHashCode(callSuper = false)
public class EmployeePerformance extends Model<EmployeePerformance> {

    private static final long serialVersionUID = 1L;

    /**
     * 绩效id
     */
    @ApiModelProperty(value = "绩效id")
    @TableId(value = "employee_performance_id", type = IdType.AUTO)
    private Long employeePerformanceId;

    /**
     * 用户id
     */
    @ApiModelProperty(value = "用户id")
    private Long userId;

    /**
     * 员工绩效生成时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @ApiModelProperty(value = "员工绩效生成时间")
    private LocalDateTime employeePerformanceCreat;

    /**
     * 是否达标（0-未达标,1-达标）
     */
    @ApiModelProperty(value = "是否达标（0-未达标,1-达标）")
    private Integer standard;


    @Override
    public Serializable pkVal() {
        return this.employeePerformanceId;
    }

}
